<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"/>
    <link rel="stylesheet" href="/resources/css/weui.min.css"/>
    <link rel="stylesheet" href="/resources/css/myweui.css"/>
    <link rel="stylesheet" href="/resources/css/iscroll2.css"/>
    <title>Hello world</title>
    <script type="text/javascript" src="/resources/js/zepto.min.js"></script>
    <script type="text/javascript" src="/resources/js/iscroll.js"></script>
    <script type="text/javascript" src="/resources/js/fastclick.js"></script>
    <script src="/resources/js/layzr.min.js"></script>
    <script src="/resources/js/swiper.min.js"></script>
    <script src="/resources/js/myweui.js"></script>
    <script type="text/javascript">
        $(function () {
            // alert('dom ready');
            loaded();
        });

        var myScroll;

        function loaded() {
            myScroll = new IScroll('#wrapper', {
                mouseWheel: true,
                click: true
            });
        }

        document.addEventListener('touchmove', function (e) {
            e.preventDefault();
        }, false);

    </script>

    <style>
        .page {
            z-index: 2;
        }
    </style>
</head>
<body>
<div class="container js_container">
    <div class="page">
        <div class="header">
            WeUI + iscroll例子
        </div>
        <div class="bd" id="wrapper">
            <div id="scroller">
                <ul>
                    <li>
                        <a class="weui_cell js_cell" href="javascript:;" data-id="button">
                      <span class="weui_cell_hd">
                        <img src="/resources/images/icon_nav_button.png" class="icon_nav" alt=""></span>

                            <div class="weui_cell_bd weui_cell_primary">
                                <p>Button</p>
                            </div>
                            <div class="weui_cell_ft">
                            </div>
                        </a>
                    </li>
                    <li>Pretty row 2</li>
                    <li>Pretty row 3</li>
                    <li>Pretty row 4</li>
                    <li>Pretty row 5</li>
                    <li>Pretty row 6</li>
                    <li>Pretty row 7</li>
                    <li>Pretty row 8</li>
                    <li>Pretty row 9</li>
                    <li>Pretty row 10</li>
                    <li>Pretty row 11</li>
                    <li>Pretty row 12</li>
                    <li>Pretty row 13</li>
                    <li>Pretty row 14</li>
                    <li>Pretty row 15</li>
                    <li>Pretty row 16</li>
                    <li>Pretty row 17</li>
                    <li>Pretty row 18</li>
                    <li>Pretty row 19</li>
                    <li>Pretty row 20</li>
                    <li>Pretty row 21</li>
                    <li>Pretty row 22</li>
                    <li>Pretty row 23</li>
                    <li>Pretty row 24</li>
                    <li>Pretty row 25</li>
                    <li>Pretty row 26</li>
                    <li>Pretty row 27</li>
                    <li>Pretty row 28</li>
                    <li>Pretty row 29</li>
                    <li>Pretty row 30</li>
                    <li>Pretty row 31</li>
                    <li>Pretty row 32</li>
                    <li>Pretty row 33</li>
                    <li>Pretty row 34</li>
                    <li>Pretty row 35</li>
                    <li>Pretty row 36</li>
                    <li>Pretty row 37</li>
                    <li>Pretty row 38</li>
                    <li>Pretty row 39</li>
                    <li>Pretty row 40</li>
                    <li>Pretty row 41</li>
                    <li>Pretty row 42</li>
                    <li>Pretty row 43</li>
                    <li>Pretty row 44</li>
                    <li>Pretty row 45</li>
                    <li>Pretty row 46</li>
                    <li>Pretty row 47</li>
                    <li>Pretty row 48</li>
                    <li>Pretty row 49</li>
                    <li>Pretty row 50</li>
                </ul>
            </div>
        </div>

        <div class="hd footer">
            <h1 class="page_title">WeUI</h1>
        </div>
    </div>
</div>
<script type="text/html" id="tpl_button">
    <div class="page">
        <div class="hd">
            <h1 class="page_title">Button</h1>
        </div>
        <div class="bd spacing">
            <a href="javascript:;" class="weui_btn weui_btn_primary">按钮</a>
            <a href="javascript:;" class="weui_btn weui_btn_disabled weui_btn_primary">按钮</a>
            <a href="javascript:;" class="weui_btn weui_btn_warn">确认</a>
            <a href="javascript:;" class="weui_btn weui_btn_disabled weui_btn_warn">确认</a>
            <a href="javascript:;" class="weui_btn weui_btn_default">按钮</a>
            <a href="javascript:;" class="weui_btn weui_btn_disabled weui_btn_default">按钮</a>

            <div class="button_sp_area">
                <a href="javascript:;" class="weui_btn weui_btn_plain_default">按钮</a>
                <a href="javascript:;" class="weui_btn weui_btn_plain_primary">按钮</a>

                <a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_primary">按钮</a>
                <a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_default">按钮</a>
            </div>
        </div>
    </div>
</script>
</body>
</html>
      